<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>佣金结算</title>

    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="__PUBLIC__/Theme1/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>佣金结算 <!-- <a href="__URL__/add" style="margin-left:15px; color:#06cbc4">添加会员</a>--></h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>

                    <form method="post" action="__URL__/DelAll" class="form-horizontal" id="form-admin-add">
                    <script type="text/javascript">
                    function CheckAll(val) {
                        $("input[name='node[]']").each(function() {
                            this.checked = val;
                        });
                    }
                    </script>


                    <div class="ibox-content">
                        <table class="table table-striped table-bordered table-hover dataTables-example">

                            <thead>
                                <tr>
                                    <th></th>
                                    
                                <th>提交时间</th>
                                <th>订单号</th>
                                <th>订单金额</th>
                                <th>订单日期</th>
                                <th>佣金比例</th>
                                <th>实得佣金</th>
                                <th>处理状态</th>
                                
                                <th class="dropdown hidden-xs">是否发放</th>
                                </tr>
                            </thead>
                            <tbody>
                            <foreach name="bonusList" item="val_staffLists">
                <tr class="text-c">
                <td><input type="checkbox" name="node[]" value="<{$val_staffLists.id}>"></td> 
                
                                <td><?php echo date('Y-m-d H:i:s',$val_staffLists['tijiaodate']) ?></td>                           
                                <td><{$val_staffLists.order_id}></td>
                                <td><{$val_staffLists.order_jine}></td>
                                <td><?php echo date('Y-m-d H:i:s',$val_staffLists['order_time']) ?></td>    
                                <td><{$val_staffLists.yongjinbili}>%</td>
                                <td><{$val_staffLists.yong_amount}></td>
                                <td><?php echo GetChuli($val_staffLists['is_chuli']) ?></td >
                        

                <td class="td-manage dropdown hidden-xs">
                
                
               <!-- <a title="驳回请求" href="__URL__/yongjinff/delete/<{$val_staffLists.id}>"><img src="__PUBLIC__/Theme1/img/del_member.png"/></a> -->
               <a title="发放奖金" href="__URL__/yongjinff/stId/<{$val_staffLists.id}>"><img src="__PUBLIC__/Theme1/img/jihuo.png"/></a>

                </td>
            </tr>
            </foreach>
                            </tbody>
                            
                        </table>
                        <input type='checkbox' id='chkAll' onclick="CheckAll(this.checked)"> <span style="margin-right: 10px;color: #2c86da; font-size: 12px; font-weight: bold">全 选</span>
                        <input class="btn btn-success btn-xs" type="submit" value="删除" >
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/jeditable/jquery.jeditable.js"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
    <script>
        $(document).ready(function() {
            $(".dataTables-example").dataTable();
            var oTable = $("#editable").dataTable();
            oTable.$("td").editable("../example_ajax.php", {
                "callback": function(sValue, y) {
                    var aPos = oTable.fnGetPosition(this);
                    oTable.fnUpdate(sValue, aPos[0], aPos[1])
                },
                
                "width": "90%",
                "height": "100%"
            })
        });
        function fnClickAddRow() {
            $("#editable").dataTable().fnAddData(["Custom row", "New row", "New row", "New row", "New row"])
        };
        function conf(id){  //删除临时会员提示框
            if(confirm('确定删除')){
                window.location.href="__URL__/del/lsid/"+id;
            }else{
                return false;
            }
        }
    </script>
</body>

</html>
